package com.ddwl.goods.dao;

import com.ddwl.common.dao.TkDao;
import com.ddwl.goods.mapper.AcademyColumnMapper;
import com.ddwl.goods.model.AcademyColumn;
import com.ddwl.schema.bo.goods.AcademyColumnBo;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.entity.Example;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author hemiaojun
 * @Date 2020/11/19 16:37
 */
@Repository
public class AcademyColumnDao extends TkDao<AcademyColumnMapper, AcademyColumn> {

    @Resource
    private AcademyColumnMapper academyColumnMapper;

    public List<AcademyColumn> getList(AcademyColumnBo param) {
        Example example = getExample();
        example.and().andEqualTo("name", param.getName());
        return academyColumnMapper.selectByExample(example);
    }
}
